package net.maku.propagate.convert;

import net.maku.propagate.entity.PropagateNewsEntity;
import net.maku.propagate.vo.PropagateNewsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 新闻资讯
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2025-03-16
*/
@Mapper
public interface PropagateNewsConvert {
    PropagateNewsConvert INSTANCE = Mappers.getMapper(PropagateNewsConvert.class);

    PropagateNewsEntity convert(PropagateNewsVO vo);

    PropagateNewsVO convert(PropagateNewsEntity entity);

    List<PropagateNewsVO> convertList(List<PropagateNewsEntity> list);

}